package com.flyduck.modules.system.mapper;

import com.flyduck.modules.system.domain.SysLog;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysLog record);

    int insertSelective(SysLog record);

    SysLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLog record);

    int updateByPrimaryKey(SysLog record);

    /**
     * 根据查询条件分页查询数据
     * @param keyword
     * @return
     */
    Page<SysLog> findPage(@Param("keyword")String keyword);

    /**
     * 删除所有数据
     */
    void deleteAll();

}